import { program } from 'commander';
import { create } from './create.js';
import { blue, green } from 'kolorist';

program
  .name('create-my-vue')
  .description('A Vue-like project scaffolding tool')
  .argument('[project-name]', 'Project name')
  .option('-d, --default', 'Skip prompts and use default configuration')
  .option('-f, --force', 'Overwrite existing directory')
  .action(async (projectName, options) => {
    console.log('projectName==', projectName);
    console.log('options==', options);
    console.log(blue('✨  Creating a Vue project with create-my-vue ✨'));
    console.log();
    
    await create(projectName, options);
  })
  .parse(process.argv);